package com.project.mapper;

import com.project.bean.ResBean;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface IResMapper {
    @Insert("INSERT INTO t_res(r_name,r_info,fk_topicId,r_resDate,fk_userId)VALUES" +
            "(#{title},#{info},#{topic.id},#{dateTime},#{user.id})")
    void add(ResBean res);
}
